<!-- 收藏 -->

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>收藏夹</title>
    <link rel="icon" href="__ROOT__/public/lcbook.ico" type="image/x-icon">
    <link rel="stylesheet" href="__ROOT__/public/static/css/common.css">
    <link rel="stylesheet" href="__ROOT__/public/static/css/header.css">
    <link rel="stylesheet" href="__ROOT__/public/static/css/star.css">
    <link rel="stylesheet" href="__ROOT__/public/static/css/emptyMsg.css">

    <!-- fontawesome字体 -->
    <link rel="stylesheet" href="__ROOT__/public/static/font/font-awesome.min.css">
</head>

<body>
    <!-- 头部 -->
    {include file="./public/common/header.html"/}

    <!-- 中间收藏夹 -->
    <div id="star">
      <form method="POST" action="{:url('star/star')}">
        <div class="starSearch">
            <h3>收藏夹</h3>
            <div>
                <input type="text" placeholder="宝贝搜索" name="bname" value="{$Think.session.bname}">
            </div>
            <button type="submit">&#xf002</button>
        </div>
       </form>
        <div class="starContent">
            <!-- 收藏商品 -->
            {assign name="count" value="0" /}
            {foreach $result as $star}
            {assign name="count" value="$count+1" /}
            <a href="{:url('shopdetail/shopdetail')}?bookID={$star.bookID}">
                <div class="starshop">
                    <img src="__ROOT__/public/static/image/{$star.pictures}" alt="">
                    <p class="describe" align="center">{$star.bname}</p>
                    <p class="price">￥{$star.yourprice}</p>
                </div>
            </a>
			{/foreach}
            
        </div>
    </div>
	{if condition="$count eq '0' "}
     <!-- 收藏夹为空时显示 -->
     <div id="empty" style="display: block;" align="center">
        <img src="__ROOT__/public/static/image/empty.png" alt="">
        <div>
            <h4 class="tit">您的收藏夹为空哦！</h4>
            <p class="msg"><a href="{:url('index/index')}" class="activate_font">去随便逛逛吧，</a>看有没有喜欢的</p>
        </div>
    </div>
    {/if}
    <!-- js代码 -->
    <script src="__ROOT__/public/static/js/jquery-1.8.3.min.js"></script>
    <script src="__ROOT__/public/static/js/header.js"></script>
</body>

</html>